Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 30, 2025

Description

Follow up on and similar to #1096, but now for a new test which was added in the 4.x branch.

As per the previous commit:

This should probably get a better test to ensure that the method actually returns microseconds, but time is difficult to test, which makes these assertions flaky and that's even worse.

For now, let's remove the flaky assertions.

Suggested changelog entry

N/A

Follow up on and similar to 1096, but now for a new test which was added in the 4.x branch.

As per the previous commit:
> This should probably get a better test to ensure that the method actually returns microseconds, but time is difficult to test, which makes these assertions flaky and that's even worse.
>
> For now, let's remove the flaky assertions.
@jrfnl jrfnl added this to the 4.0.0 milestone Aug 30, 2025
@jrfnl jrfnl merged commit ef76bbf into 4.x Aug 30, 2025
97 of 98 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/timingtest-remove-flaky-assertions branch August 30, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant